﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace Blank.wcf.ClientConnectLib
{
    public class InstanceContext<T>
    {
        public InstanceContext Context { get; private set; }
        public InstanceContext(T callbackInstance)
        {
            this.Context = new InstanceContext(callbackInstance);
        }

        public void ReleaseServiceInstance()
        {
            Context.ReleaseServiceInstance();
        }
        public T ServiceInstance
        {
            get
            {
                return (T)Context.GetServiceInstance();
            }
        }
    }
}
